inspector: Repeat the keybinding warning
authorMatthias Clasen <mclasen@redhat.com>
Thu, 22 May 2014 22:32:37 +0000 (18:32 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 22 May 2014 22:37:43 +0000 (18:37 -0400)
Show the confirmation dialog every time the keybinding is used,
until the user clicks OK.

gtk/gtkwindow.c

index 537cdf1fe6495c25a49cf4e2798be203299719c4..7dd0498911198a082d27b9455ad86da96fe7ab1b 100644 (file)
@@ -12260,7 +12260,10 @@ warn_response (GtkDialog *dialog,
 {
   gtk_widget_destroy (GTK_WIDGET (dialog));
   if (response == GTK_RESPONSE_NO)
-    gtk_widget_hide (inspector_window);
+    {
+      gtk_widget_destroy (inspector_window);
+      inspector_window = NULL;
+    }
 }
 
 static gboolean
@@ -12296,8 +12299,7 @@ gtk_window_set_debugging (gboolean enable,
                 "application to break or crash."));
           gtk_dialog_add_button (GTK_DIALOG (dialog), _("_Cancel"), GTK_RESPONSE_NO);
           gtk_dialog_add_button (GTK_DIALOG (dialog), _("_OK"), GTK_RESPONSE_YES);
-          g_signal_connect (dialog, "response",
-                            G_CALLBACK (warn_response), inspector_window);
+          g_signal_connect (dialog, "response", G_CALLBACK (warn_response), NULL);
         }
     }